<template>
  <div id="app">
    <ul>
      <li v-for="item in myArr" :key="item">
        {{ item }}
      </li>
    </ul>
    <!-- <button @click="go">走一走</button> -->
    <Button type="primary" @click="go">走一走</Button>
  </div> 
</template>

<script>
export default {
  data() {
    return {
      myArr: ['帅哥', '美女', '程序猿']
    }
  },
  methods: {
    go() {
      this.myArr.reverse()
    }
  }
}
</script>
<style lang="less" scoped>
    button{
        margin-top: 10px;
    }
</style>
